package main

import "fmt"

type Students struct {
	Name string
	Age  int
}

func (s *Students) String() string {
	str := fmt.Sprintf("Name=%v, Age=%v", s.Name, s.Age)
	return str
}

func main() {
	stu := Students{
		Name: "王彪",
		Age:  18,
	}
	fmt.Println(&stu) // Name=王彪, Age=18
}
